package com.ylbh.modules.usercoupon.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.common.pojo.usercoupon.dto.UserCouponDTO;
import com.ylbh.modules.usercoupon.entity.ShoppingUserCoupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 优惠券领取记录
 *
 * @author czx
 * @date 2019-11-19 16:04:09
 */
@Mapper
@Repository
public interface ShoppingUserCouponMapper extends BaseMapper<ShoppingUserCoupon> {

    /**
     * 优惠券领取记录
     * @param dto
     * @param page
     * @return
     */
    List<ShoppingUserCoupon> selectUserCouponRecordList(@Param(value = "dto") UserCouponDTO dto, Page<Object> page);
}
